const Router = require("koa-router");
const authRouter = new Router({prefix: '/login'}) // koa-router
const {login, test} = require("../controllers/auth.controller");
const {verifyAuth,verifyLogin} = require("../middlewares/auth.middleware");
authRouter.post('/',verifyAuth, login)
authRouter.get('/test',verifyLogin, test);

module.exports = authRouter;